package com.hzncc.scaffold.core;

import lombok.Getter;

/**
 * 返回状态泛型
 */
@Getter
public enum ResponseEnum {

  CODE_200(200, "操作成功"),
  CODE_9000(9000, "系统错误"),
  PARAM_ERROR(9001, "操作失败");

  private final Integer code;
  private final String message;

  ResponseEnum(Integer code, String value) {
    this.code = code;
    this.message = value;
  }

}
